package ssm.mapper;

import org.apache.ibatis.annotations.Param;
import ssm.pojo.CartItem;
import ssm.pojo.OrderBean;
import ssm.pojo.OrderItem;

import java.util.Collection;
import java.util.Date;
import java.util.List;

public interface OrderMapper {
//    ,#{orderNo},,#{orderDate},#{uid},#{orderMoney},#{orderStatus}
    void addOrder(@Param("orderNo") String orderNo,
                  @Param("orderDate") Date orderDate,
                  @Param("uid") Integer uid,
                  @Param("orderMoney") Double orderMoney,
                  @Param("orderStatus") Integer orderStatus);
    void addOrderItem(@Param("bookId") Integer bookId,@Param("buyCount") Integer buyCount,@Param("orderBean") Integer orderBean);
    OrderBean getOrderBean(@Param("orderNo")String orderNo);

    List<OrderBean> getAllOrderBean(@Param("uid")Integer uid);
}
